﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MotionCS.Controller
{
    public enum AxisEnum
    {
        /// <summary>
        /// 上照相机X轴
        /// </summary>
        X_Up,
        /// <summary>
        /// 上照相机Y轴
        /// </summary>
        Y_Up,
        /// <summary>
        /// 前轨传送轴
        /// </summary>
        T_Front,
        /// <summary>
        /// 前轨调宽轴
        /// </summary>
        W_Front,
        /// <summary>
        /// 下照相机X轴
        /// </summary>
        X_Down,
        /// <summary>
        /// 下照相机Y轴
        /// </summary>
        Y_Down,
        /// <summary>
        /// 后轨传送轴
        /// </summary>
        T_Back,
        /// <summary>
        /// 后轨调宽轴
        /// </summary>
        W_Back1,
        /// <summary>
        /// 后轨调宽轴
        /// </summary>
        W_Back2
    }
    /// <summary>
    /// 输入端口定义
    /// </summary>
    public enum DiE
    {
        /// <summary>
        /// 急停
        /// </summary>
        EmgStop,
        /// <summary>
        /// 气压
        /// </summary>
        Pressure,
        /// <summary>
        /// 开始按钮
        /// </summary>
        StartBtn,
        /// <summary>
        /// 复位按钮
        /// </summary>
        ResetBtn,
        /// <summary>
        /// 停止按钮
        /// </summary>
        StopBtn,
        /// <summary>
        /// 安全门
        /// </summary>
        SafeDoor,
        /// <summary>
        /// T1感应器1
        /// </summary>
        T1Sensor1,
        /// <summary>
        /// T1感应器2
        /// </summary>
        T1Sensor2,
        /// <summary>
        /// T1感应器3
        /// </summary>
        T1Sensor3,
        /// <summary>
        /// T1感应器4
        /// </summary>
        T1Sensor4,
        /// <summary>
        /// T1直通模式
        /// </summary>
        T1PassMode,
        /// <summary>
        /// T1上游有板
        /// </summary>
        T1FrontReady,
        /// <summary>
        /// T1下游就绪
        /// </summary>
        T1AfterReady,
        /// <summary>
        /// T2感应器1
        /// </summary>
        T2Sensor1,
        /// <summary>
        /// T2感应器2
        /// </summary>
        T2Sensor2,
        /// <summary>
        /// T2感应器3
        /// </summary>
        T2Sensor3,
        /// <summary>
        /// T2感应器4
        /// </summary>
        T2Sensor4,
        /// <summary>
        /// T2直通模式
        /// </summary>
        T2PassMode,
        /// <summary>
        /// T2上游有板
        /// </summary>
        T2FrontReady,
        /// <summary>
        /// T2下游就绪
        /// </summary>
        T2AfterReady,
        /// <summary>
        /// 数量
        /// </summary>
        Number
    }
    /// <summary>
    /// 输出端口定义
    /// </summary>
    public enum DoE
    {
        /// <summary>
        /// 上相机补光红
        /// </summary>
        CameraUpStrobeR,
        /// <summary>
        /// 上相机补光绿
        /// </summary>
        CameraUpStrobeG,
        /// <summary>
        /// 上相机补光蓝
        /// </summary>
        CameraUpStrobeB,
        /// <summary>
        /// 上相机补光白
        /// </summary>
        CameraUpStrobeW,
        /// <summary>
        /// 上相机触发
        /// </summary>
        CameraUpTrigger,
        /// <summary>
        /// 左光机上相机触发
        /// </summary>
        CameraUpLeftDlp,
        /// <summary>
        /// 前光机上相机触发
        /// </summary>
        CameraUpFrontDlp,
        /// <summary>
        /// 右光机上相机触发
        /// </summary>
        CameraUpRightDlp,
        /// <summary>
        /// 后光机上相机触发
        /// </summary>
        CameraUpBackDlp,
        /// <summary>
        /// 下相机补光红
        /// </summary>
        CameraDownStrobeR,
        /// <summary>
        /// 下相机补光绿
        /// </summary>
        CameraDownStrobeG,
        /// <summary>
        /// 下相机补光蓝
        /// </summary>
        CameraDownStrobeB,
        /// <summary>
        /// 线相机补光白
        /// </summary>
        CameraDownStrobeW,
        /// <summary>
        /// 下相机触发
        /// </summary>
        CameraDownTrigger,
        /// <summary>
        /// 左光机下相机触发
        /// </summary>
        CameraDownLeftDlp,
        /// <summary>
        /// 前光机下相机触发
        /// </summary>
        CameraDownFrontDlp,
        /// <summary>
        /// 右光机下相机触发
        /// </summary>
        CameraDownRightDlp,
        /// <summary>
        /// 后光机下相机触发
        /// </summary>
        CameraDownBackDlp,
        /// <summary>
        /// T1左阻挡气缸
        /// </summary>
        T1Cylinder1,
        /// <summary>
        /// T1中压紧气缸
        /// </summary>
        T1Cylinder2,
        /// <summary>
        /// T1右阻挡气缸
        /// </summary>
        T1Cylinder3,
        /// <summary>
        /// T1本机就绪
        /// </summary>
        T1FrontReady,
        /// <summary>
        /// T1本机有板
        /// </summary>
        T1AfterReady,
        /// <summary>
        /// T1检测结果
        /// </summary>
        T1CheckReady,
        /// <summary>
        /// T1红灯
        /// </summary>
        T1Red,
        /// <summary>
        /// T1绿灯
        /// </summary>
        T1Green,
        /// <summary>
        /// T1黄灯
        /// </summary>
        T1Yellow,
        /// <summary>
        /// T1蜂鸣器
        /// </summary>
        T1Beep,
        /// <summary>
        /// T2左阻挡气缸
        /// </summary>
        T2Cylinder1,
        /// <summary>
        /// T2中压紧气缸
        /// </summary>
        T2Cylinder2,
        /// <summary>
        /// T2右阻挡气缸
        /// </summary>
        T2Cylinder3,
        /// <summary>
        /// T2本机就绪
        /// </summary>
        T2FrontReady,
        /// <summary>
        /// T2本机有板
        /// </summary>
        T2AfterReady,
        /// <summary>
        /// T2检测结果
        /// </summary>
        T2CheckReady,
        /// <summary>
        /// T2红灯
        /// </summary>
        T2Red,
        /// <summary>
        /// T2绿灯
        /// </summary>
        T2Green,
        /// <summary>
        /// T2黄灯
        /// </summary>
        T2Yellow,
        /// <summary>
        /// T2蜂鸣器
        /// </summary>
        T2Beep,
        /// <summary>
        /// 数量
        /// </summary>
        Number
    }
}
